<script language="javascript" type="text/javascript">

//    var isMobile = {
//        Android: function() {
//            return navigator.userAgent.match(/Android/i);
//        },
//        BlackBerry: function() {
//            return navigator.userAgent.match(/BlackBerry/i);
//        },
//        iOS: function() {
//            return navigator.userAgent.match(/iPhone|iPad|iPod/i);
//        },
//        Opera: function() {
//            return navigator.userAgent.match(/Opera Mini/i);
//        },
//        Windows: function() {
//            return navigator.userAgent.match(/IEMobile/i);
//        },
//        any: function() {
//            return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
//        }
//    };
//    
//    if( isMobile.any() )
//    {
//        //alert('Mobile');
//        //window.location = '192.198.1.8/mobile_oop';
//    }
//    else
//    {
//        //alert('computer');
//        window.location = 'http://www.mocyc.com';
//    }

</script>
<?php
//if(!isset($_SESSION)){session_start();};
require_once 'include/config.php';
require_once 'include/class_db.php';
require_once 'include/functions.php';
?>

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1">
            <meta name="apple-mobile-web-app-capable" content="yes" />
            <title><?php echo WEB_TITLE; ?></title>
            <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
            <script type="text/javascript" src="jquerymobile/jquery.mobile-1.2.0.min.js"></script>
            <script type="text/javascript" src="js/infinite_scroll.js"></script>

            <link href="jquerymobile/jquery.mobile-1.2.0.min.css" rel="stylesheet" type="text/css" />
            <link href="jquerymobile/jquery.mobile.theme-1.2.0.min.css" rel="stylesheet" type="text/css" />
            <link href="jquerymobile/jquery.mobile.structure-1.2.0.min.css" rel="stylesheet" type="text/css" />
            <link href="css/style.css" rel="stylesheet" type="text/css" />
    </head>

    <body id="top">
        <?php
        if(isset($_GET['q']))
        {
            if($_GET['q'] == 'home')
            {
                include 'module/index.php';
            }
            else if($_GET['q'] == 'news')
            {
                include 'module/news.php';     // News
            }
            else if($_GET['q'] == 'newsSearch')
            {
                include 'module/newsSearch.php';
            }
            else if($_GET['q'] == 'newsDetail')
            {
                include 'module/newsDetail.php';
            }
            else if($_GET['q'] == 'market')
            {   // Market
                include 'module/market.php';
            }
            else if($_GET['q'] == 'marketSearch')
            {
                include 'module/marketSearch.php';
            }
            else if($_GET['q'] == 'productDetail')
            {
                include 'module/productDetail.php';
            }
            else if($_GET['q'] == 'webboard')
            {   // Webboard
                include 'module/webboard.php';
            }
            else if($_GET['q'] == 'webboardSearch')
            {
                include 'module/webboardSearch.php';
            }
            elseif($_GET['q'] == 'webboardDetail')
            {
                include 'module/webboardDetail.php';
            }
            else if($_GET['q'] == 'modify')
            {    // Modify
                include 'module/modify.php';
            }
            else if($_GET['q'] == 'modifySearch')
            {
                include 'module/modifySearch.php';
            }
            else if($_GET['q'] == 'modifyDetail')
            {
                include 'module/modifyDetail.php';
            }
            else if($_GET['q'] == 'galleries')
            {   // galleries
                include 'module/gallery.php';
            }
            else if($_GET['q'] == 'gallerySearch')
            {
                include 'module/gallerySearch.php';
            }
            else if($_GET['q'] == 'galleryDetail')
            {
                include 'module/galleryDetail.php';
            }
            else if($_GET['q'] == 'video')
            {    // video
                include 'module/video.php';
            }
            else if($_GET['q'] == 'club')
            {    // Club
                include 'module/club.php';
            }
            else if($_GET['q'] == 'clubListDetail')
            {
                include 'module/clubListDetail.php';
            }
            else if($_GET['q'] == 'clubSearch')
            {
                include 'module/clubSearch.php';
            }
            else if($_GET['q'] == 'clubDetail')
            {
                include 'module/clubDetail.php';
            }
            else if($_GET['q'] == 'activity')
            {   // Activity
                include 'module/activity.php';
            }
            else if($_GET['q'] == 'activityDetail')
            {
                include 'module/activityDetail.php';
            }
            else if($_GET['q'] == 'aboutUs')
            {   // About Us
                include 'module/aboutUs.php';
            }
            else
            {
                include 'module/index.php';
            }
        }
        else
        {
            include 'module/index.php';
        }
        ?>
        </div>
        <!-- /page -->
    </body>
</html>